using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityCustomerOrdersCreateExtend
{
		public static CustomerOrders ToCreateEntity(this RequestCustomerOrdersDto dto)
		{
			return new CustomerOrders
			{
				CoAccountId = dto.accountId,
				OdDiscountId = dto.discountId,
				OdDeductionId = dto.deductionId,
			};
		}
	}
}
